import request from '@/utils/request'

const url = process.env.VUE_APP_PUSH_API || 'pusher'

export default {
  // 5.3.1、MQTT推送消息
  MQTTPush(pushData) {
    return request.post(`${url}/api/v1/command/push`, pushData)
  },
  // 5.3.2、HTTP推送消息
  httpPush(pushData) {
    return request.post(`${url}/api/v1/command/push`, pushData)
  }
}
